<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<style type="text/css">
	.col-sm-8.wd {
		margin-left: 80px;
		margin-top: -30px;
	}
	.form-group.re {
		padding-top: 10px;
	}
</style>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-kBj-edit" th:object="${kBj}">
            <input id="id" name="id" th:field="*{id}"  type="hidden">
			<div class="form-group" hidden>
				<label class="col-sm-3 control-label">：</label>
				<div class="col-sm-8">
					<input id="byqId" name="byqId" th:field="*{byqId}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group" hidden>
				<label class="col-sm-3 control-label">：</label>
				<div class="col-sm-8">
					<input id="pId" name="pId" th:field="*{pId}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group" hidden>
				<label class="col-sm-3 control-label">设备ID：</label>
				<div class="col-sm-8">
					<input id="boxId" name="boxId" th:field="*{boxId}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group re">
				<label class="col-sm-3 control-label">户名：</label>
				<div class="col-sm-8 wd">
					<input id="name" name="name" th:field="*{name}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group re">
				<label class="col-sm-3 control-label">户号：</label>
				<div class="col-sm-8 wd">
					<input id="code" name="code" th:field="*{code}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group re">
				<label class="col-sm-3 control-label">表计类型：</label>
				<div class="col-sm-8 wd">
					<!--<input id="type" name="type" th:field="*{type}" class="form-control" type="text">-->
					<select id="type" class="form-control" name="type" th:field="*{type}">
						<option value="用户表">用户表</option>
						<option value="关口表">关口表</option>
					</select>
				</div>
			</div>
			<div class="form-group re">
				<label class="col-sm-3 control-label">表号：</label>
				<div class="col-sm-8 wd">
					<input id="bCode" name="bCode" th:field="*{bCode}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group" hidden>
				<label class="col-sm-3 control-label">数据状态：</label>
				<div class="col-sm-8">
					<input id="datastate" name="datastate" th:field="*{datastate}" class="form-control" type="text">
				</div>
			</div>
		</form>
    </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "assets/kBj";
		$("#form-kBj-edit").validate({
			rules:{
				xxxx:{
					required:true,
				},
			},
			focusCleanup: true
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/edit", $('#form-kBj-edit').serialize());
	        }
	    }
	</script>
</body>
</html>
